<template>
  <div id="app">
    <nav-bar />
    <div class="main-content">
      <router-view/>
    </div>
    <footer-bar />
    <UserDashboard />
  </div>
</template>

<script>
import NavBar from '@/components/NavBar.vue'
import FooterBar from '@/components/FooterBar.vue'
import UserDashboard from './components/UserDashboard.vue'

export default {
  name: 'App',
  components: {
    NavBar,
    FooterBar,
    UserDashboard
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 为路由视图添加顶部内边距，避免被导航栏遮挡 */
.router-view {
  padding-top: 60px;
}

.main-content {
  flex: 1;
  padding-top: 60px; /* 为固定顶栏留出空间 */
  min-height: calc(100vh - 60px - 400px); /* 确保内容区域最小高度 */
}
</style>
